<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-cn" lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>snapshot</title>
		<link type="text/css" href="css/main.css" rel="stylesheet"/>
		<link rel="stylesheet" href="css/tip-yellowsimple/tip-yellowsimple.css" type="text/css" />
		<!--空间fusion脚本-->
		<script type="text/javascript" charset="utf-8"
		src="http://fusion.qq.com/fusion_loader?appid=100681782&platform={$pf}"></script>

		<script src="js/jquery.min.js"></script>
		<!--js脚本-->

		

	</head>

	<body onload="pageInit()">
		<div id="main">

			<!--<a version="1.0" class="qzOpenerDiv" href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_likeurl" target="_blank">赞</a><script  src="http://qzonestyle.gtimg.cn/qzone/app/qzlike/qzopensl.js#jsdate=20110603&style=3&showcount=1&width=130&height=30" charset="utf-8" defer="defer" ></script>

			<a href="javascript:void()" onclick="aa()">邀请好友</a>-->

			<div id='top'>
				<span >【推荐】一个关于女人柔软内心的微博：@豆蔻 <iframe src="http://follow.v.t.qq.com/index.php?c=follow&a=quick&name=doucomewang&style=4&t=1357101668474&f=0" frameborder="0" scrolling="auto" width="125" height="27" marginwidth="0" marginheight="0"></iframe> <a id="btn_share"  title="分享应用获赠1张相纸" href="javascript:void(0);" class="share" onclick="sendstory({$userid})" ></a><a id="btn_invite" title="发送邀请获赠1张相纸" href="javascript:void(0);" class="invite"  onclick="invite({$userid})"></a></span>
			</div>
			<div class="boxin">

				<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="760" height="580" id="swf_ie" align="middle">
					<param name="movie" value="{$vars}" />
					<param name="quality" value="high" />
					<param name="bgcolor" value="#999999" />
					<param name="play" value="true" />
					<param name="loop" value="true" />
					<param name="wmode" value="window" />
					<param name="scale" value="showall" />
					<param name="menu" value="true" />
					<param name="devicefont" value="false" />
					<param name="salign" value="" />
					<param name="allowScriptAccess" value="always" />
					<!--[if !IE]>-->
					<object type="application/x-shockwave-flash" data="{$vars}" width="760" height="580" id="swf_other">
						<param name="movie" value="{$vars}" />
						<param name="quality" value="high" />
						<param name="bgcolor" value="#999999" />
						<param name="play" value="true" />
						<param name="loop" value="true" />
						<param name="wmode" value="window" />
						<param name="scale" value="showall" />
						<param name="menu" value="true" />
						<param name="devicefont" value="false" />
						<param name="salign" value="" />
						<param name="allowScriptAccess" value="always" />
						<!--<![endif]-->
						<a href="http://www.adobe.com/go/getflash"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /> </a>
						<!--[if !IE]>-->
					</object>
					<!--<![endif]-->
				</object>
			</div>
			<div id='footer'>
				声明:【快照情缘】应用由豆蔻网络技术有限公司提供，若在游戏中遇到问题，可以直接联系客服QQ：10507600 或发邮件至：vip@doucome.com
			</div>
		</div>
		<script type="text/javascript">
		
		
            // ------- Private vars -------
            var jsReady = false;

            // ------- functions called by ActionScript -------
            // called to check if the page has initialized and JavaScript is available
            function isReady() {
                return jsReady;
            }

            // called by the onload event of the <body> tag
            function pageInit() {
                // Record that JavaScript is ready to go.
                jsReady = true;
                //alert(jsReady);
            }

            function getSWF(movieName) {
                if (navigator.appName.indexOf("Microsoft") != -1) {
                    //alert('aa');
                    return window[movieName];

                } else {
                    //alert('bb');
                    return document[movieName];
                }
            }

            sendstory = function(userid) {
                fusion2.dialog.sendStory({

                    title : "热门社交应用《快照情缘》",

                    img : "http://b250.photo.store.qq.com/psb?/V11PV0YF03rbId/i29qy7IkvF1vzHoMht8h6ugtS8YKw3sXsjHbtSILUPU!/b/dEs*EpWFGQAA&bo=yADIAAAAAAADACU!",

                    summary : "有缘千里来“相”会，邂逅高富帅，约会百富美，一张快照，一世情缘！",

                    msg : "我在《快照情缘》中遇到一位有缘人，看来今年桃花挡不住，嘿嘿！",

                    button : "进入应用",

                    source : "share=" + userid,

                    context : "send-story-12345",

                    onShown : function(opt) {
                        //alert("Shown");
                    },

                    onSuccess : function(opt) {
                        // opt.context：可选。opt.context为调用该接口时的context透传参数，以识别请求

                        //alert("Succeeded: " + opt.context);

                        userid = $("#userid").val();
                        upxz(userid, '1');
                    },

                    onCancel : function(opt) {
                        // opt.context：可选。opt.context为调用该接口时的context透传参数，以识别请求

                        //alert("Cancelled: " + opt.context);
                    },

                    onClose : function(opt) {
                        //alert("Closed");
                    }
                });
            }
            invite = function(userid) {
                fusion2.dialog.invite({

                    msg : "今年你的桃花运不错，强烈建议你来玩《快照情缘》~邂逅有缘人！",

                    //img : "",

                    source : "share=" + userid,

                    context : "invite",

                    onSuccess : function(opt) {
                        //alert("邀请成功");
                        userid = $("#userid").val();
                        upxz(userid, '2');
                    },

                    onCancel : function(opt) {
                        //alert("邀请取消");
                    },

                    onClose : function(opt) {
                        //alert("邀请关闭");
                    }
                });

            }
            sayhello = function(msg) {
                alert("hello," + msg);
            }
            flashsync = function() {
                var isIE = document.all && window.external;
                var swfId = "swf_" + ( isIE ? "ie" : "other");
                document.getElementById(swfId).sync();
            }
            upxz = function(id, tp) {
                $.post("?a=upxz", {
                    userid : id,
                    type : tp
                }, function(data, status) {
                    alert(data);
                    flashsync();
                });
            }
		</script>
		<span style="display:none">
			<input type="hidden" id="userid" value="{$userid}">
		</span>
	</body>
</html>
